
import os
from inspect import getmembers

resource_path = os.path.join('D:\\workspace1\\python\\cmdb-2.5.1\\cmdb-api\\api\\views', "acl")

print(resource_path)

class Aaa:
    def aaa():
        print("aaaaa")
    
    def bbb():
        print("bbb")

print('文件夹路径', '文件夹名字', '文件名', end="\t")
for root, _, files in os.walk(os.path.join(resource_path)):
    print(f"{root}\t{_}\t, 对应的文件列表为如下：")
    for filename in files:
        print(f"文件名称: {filename}")
        print("分割之后:", end="")
        print(os.path.splitext(filename)[0])

        # resource_list = [o[0] for o in getmembers(view)]
        aaa = Aaa()
        result = getmembers(aaa)
        for key in result:
            print(key)
        break




